﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using HsTec.DigitalPlatform.DataAccess;

namespace HsTec.DigitalPlatform.Business
{
    public class ClassInfoManager
    {
        ClassInfoRepository classinforepository = new ClassInfoRepository();

        public void Add(ClassInfo deptinfo)
        {
            classinforepository.Add(deptinfo);
        }

        public void Delete(ClassInfo deptinfo)
        {
            classinforepository.Delete(deptinfo);
        }

        public void Save()
        {
            classinforepository.Save();
        }

        public ClassInfo GetClassInfoByID(int id)
        {
            return classinforepository.GetClassInfoByID(id);
        }

        public IQueryable<ClassInfo> FindALLClassInfo()
        {
            return classinforepository.FindALLClassInfo();
        }

        public IQueryable<ClassInfo> PageInfo(int page, int rp, string sortname, string sortorder)
        {
            return classinforepository.PageInfo(page, rp, sortname, sortorder);
        }

        public int GetAllCount()
        {
            return classinforepository.GetAllCount();
        }

        public IQueryable FindClassInfoBySpecID(int specid,int gradeid)
        {
            return classinforepository.FindClassInfoBySpecID(specid, gradeid);
        }
    }
}
